<template>
  <div class="advert">
    <web-view :src="url1"></web-view>
  </div>
</template>

<script>

export default {
  data () {
    return {
      url1:''
    }
  },

  components: {
    
  },

  methods: {
    
  },
  onLoad(options){
	  let userToken=uni.getStorageSync('userToken');
	  let href=decodeURIComponent(options.url);
	  var hasQuery = href.indexOf('?') > 0;
	  href = href 
		  + (hasQuery ? `&userToken=${userToken}` : `?userToken=${userToken}`)   
    this.url1=href

  },

}
</script>

<style scoped lang="scss" type="text/css">

</style>
